#ifndef PLAYSCENE_H
#define PLAYSCENE_H

#include <QMainWindow>
#include "mymainwindow.h"
#include "coinbutton.h"
class PlayScene : public myMainWindow
{
    Q_OBJECT
public:
     PlayScene(int level,QWidget *parent = nullptr);

     //翻动row行，col列的函数
     void flip(int row,int col);

     //判断游戏胜利
     void judgeWin();

protected:
    void paintEvent(QPaintEvent *event);
signals:
    //点击返回按钮发射的信号
    void backBtnClicked();
private:
    //硬币按钮数组
    CoinButton *mCoins[4][4];
    //胜利状态
    bool mHasWin;
};

#endif // PLAYSCENE_H
